b08ad44230269a2a8717c3c8a25a9b5539a55a22,org.springframework.web/src/main/java/org/springframework/http/client/SimpleClientHttpRequestFactory.java,SimpleClientHttpRequestFactory,prepareConnection,#HttpURLConnection#String#,52

Before Change


	 */
	protected void prepareConnection(HttpURLConnection connection, String httpMethod) throws IOException {
		connection.setDoInput(true);
		connection.setDoOutput(true);
		connection.setRequestMethod(httpMethod);
	}

After Change


	protected void prepareConnection(HttpURLConnection connection, String httpMethod) throws IOException {
		connection.setDoInput(true);
		if ("PUT".equals(httpMethod) || "POST".equals(httpMethod)) {
			connection.setDoOutput(true);
		} else {
			connection.setDoOutput(false);
		}